/*------------------------------------------*/
/* AUTHOR:   Incarnation-p-lee              */
/* DATE:     2013/05/07                     */
/*------------------------------------------*/

void
timing_start()
{
  gettimeofday(&timePoint_start,NULL);

  return;
}

void
timing_end()
{
  gettimeofday(&timePoint_end,NULL);
  timing_cost();

  return;
}

static void
timing_cost()
{
  fprintf(stdout,"sorting micirsencod"
    " costing %d us.\n",
    (int)timePoint_end.tv_usec - 
    (int)timePoint_start.tv_usec);

  return;
}
